package cn.zdm.demo2.auth.model.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * @author ZhaoDeman
 * @description
 * @date 2021-01-19
 */

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "IOS_APP_AUTH")
public class IosAppAuthPO implements Serializable {

    private static final long serialVersionUID = 5136664802729262723L;

    /**
     * 主键
     */
    @TableField(value = "id")
    @TableId(type = IdType.UUID)
    private String id;

    /**
     * 权限类型
     */
    @TableField(value = "authType")
    private String authType;

    /**
     * 权限接口
     */
    @TableField(value = "authName")
    private String authName;

    /**
     * 权限失效时间
     */
    @TableField(value = "authLoseTime")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date authLoseTime;

    /**
     * 最大行数
     */
    @TableField(value = "authMaxRows")
    private Long authMaxRows;

    /**
     * 时间频率
     */
    @TableField(value = "authTimeSpan")
    private Integer authTimeSpan;

    /**
     * 已经访问条数
     */
    @TableField(value = "haveVisit")
    private Long haveVisit;

}
